Find pairs with given sum in doubly linked solution

join shbcf.ru